package com.woyou.ui.activity.orderdetail;

import android.view.View;

import com.citaq.ideliver.R;
import com.woyou.ui.fragment.AssessmentOrderLayout;

/**
 * 评价订单状态返回按键命令
 * @author zhou
 *
 */
public class AssessmentBackCommand extends BackCommand {
	
	private AssessmentOrderLayout assessmentOrderPop;
	
	public AssessmentBackCommand(ViewControl view) {
		super(view);
		findView();
		
	}

	@Override
	public void execute() {
		if( assessmentOrderPop!=null ) {
			if ( assessmentOrderPop.getVisibility() == View.VISIBLE ) {
				assessmentOrderPop.setVisibility(View.GONE);
				// assessmentLayout.clear();
				return;
			} 
		}
		mControllView.back();
		
	}

	@Override
	protected void findView() {
		assessmentOrderPop = (AssessmentOrderLayout) mActivity.findViewById(R.id.assessment_order);

	}

}
